package com.dd.cloud.common.exception;

import lombok.Getter;

/**
 * 开放接口异常
 *
 * @author Lx
 * @version 1.0
 * @date 2023/8/17
 */
@Getter
public class ZekeOpenApiException extends RuntimeException {

    private static final long serialVersionUID = 1723323425231746L;

    // 状态码
    private String code;
    // 状态码消息
    private String codeMsg;
    // 数据
    private Object data;

    public ZekeOpenApiException() {
    }

    public ZekeOpenApiException(String code, String codeMsg) {
        this.code = code;
        this.codeMsg = codeMsg;
        this.data = null;
    }

    public ZekeOpenApiException(String code, String codeMsg, Object data) {
        this.code = code;
        this.codeMsg = codeMsg;
        this.data = data;
    }
}
